package com.GoldMiner.util;

import javax.swing.*;

import static com.GoldMiner.util.Img.stone;

/**
 * 石块类
 */
public class Stone extends Item {
    public Stone() {
        setM(100);
        setCount(1);//一分
        int randomX = (int) (Math.random() * 600); //随机生成x坐标
        int randomY = (int) (Math.random() * 260 + 200); //随机生成y坐标
        this.setX(randomX);
        this.setY(randomY);
        this.setWidth(71);
        this.setHeight(71);
        this.setImg(stone.getImage());
    }
}



